<%@page import="com.mfangsoft.zhuangjialong.common.utils.RedisUtils"%>
<%@page import="java.util.Random"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%response.addHeader("Access-Control-Allow-Origin","*"); %>


<%
   String count = RedisUtils.getValue("sharecount"+request.getParameter("id"));
if(count==null){
	count = new Random().nextInt(5000)%(5000-1000+1)+1000+"";
}
  Integer c = Integer.valueOf(count)+1;
  RedisUtils.setValue("sharecount"+request.getParameter("id"), c+"");
%>
  <%=c%>

</body>
</html>